Transferred javascript in new file