Use context URL in js instead of hardcoded paths