separated javascript into separate directory