add compressed javascript code, fix document