cleaned up js terminal