push javascript to a file