Rearrange the code, make it easier to use

Wraps the code to an anonymous self-executing function, creates global movejs object with simple init() method