separate main javascript file