Added easier javascript use after figuring out how the hell to do it