moving js for hiding splash screen