cleaned up js section