Added some docstrings, removed unused import.
Semicolons and single quotes in JS.