url params, slightly better handling of missing JS, some tweaks