Fix bug: JavaScript require dependencies