putting js where it should be