Implemented base JS structure