added javascript shenanigans
stuff