restore JS script to original place