Javascript required to run the app