update readme and js use dynamic url