- Cleaned up js to separate file