adds main javascript