main javascript file