CodeGlitch's Flight spell

This is a simple spell that was writen by CodeGlitch0 in order to allow the player to fly.

Code
The JavaScript code for the original spell is as follows:

Umbris's version
Umbris from the forums simplified the code to make it more compact: