Make javascript a bit consistent across scripts
Merge pull request #5 from mortenn/js_unity

Make javascript a bit more consistent across various scripts