Main js file