Main JavaScript file.

Main JavaScript file.