add parameter support to widget, fix debug static paths for JS