See inside and use the functions to do Javascript in Scratch.
Most of the Javascript commands incorperated into scratch.