Cleaned up js errors