Refectored main generator. Better function names.
Updated tests
Added html and jquery subgenerators