Dynamically create a javascript file.