added js magic for real url