Fix mainjs naming, had a double suffix.
CORS: Make OPTIONS requests match all declared routes
Revert "Fix mainjs naming, had a double suffix."

This reverts commit 0f230f1c231fe10885150ea3d81117b777e06a5a.