enable write script to js