Removed missed reference to addScripts().
Fixed dependency bug.
Loaded main JS conditionally based on screen size.