exported javascript to external file