cleaning out javascript stuff