fix query string bug on toppage. add js debug mode.