css/js/images dir can now be set through constructor