responsive design added, refactored, class structure in php, js thinned out