optimizations

added ability to work without javascript added .htaccess, other
optimizations.