add main javascript