To see the code, you might just be able to open the 'inspect element' window and go to the console - when you send to Espruino it should dump the code out there... You could always click in the left-hand pane and use up-arrow to check the history to see what was sent to Espruino...
Your issue with the timeouts is that they're both run at basically the same time. If you do a timeout of 4000 for the first, and then 8000 for the second, it should work as you expect?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Great!
To see the code, you might just be able to open the 'inspect element' window and go to the console - when you send to Espruino it should dump the code out there... You could always click in the left-hand pane and use up-arrow to check the history to see what was sent to Espruino...
Your issue with the timeouts is that they're both run at basically the same time. If you do a timeout of 4000 for the first, and then 8000 for the second, it should work as you expect?