Fixed some hardcoded paths in js.