Redirect API page to JS