As suggested moving js out of head.