added inventory
JS cleanup, move cfgs into html, add dynamic picture count, add base url