Core javascript file