Moved js to new files