Remove ugly unecessary inline javascript