fixed/refactored require_relative calls
fixed javascript commenting

- it used to erase "// }" when uncommenting