Core: Replace siteurl option with constant in JS