Handling non-variable endpoints in client js.