fix resource url, pretty the code up, partly(about 50%) passwd jslint -dye