Removed uneeded import.
Tidied & commented JavaScript.