submit a javascript file