again fixing the js debug because precompile puts all the javascripts into one file, added a hidden field that if exists then do debug otherwise don't