Move javascript to top, so Angular is available