added support for different modes (issue #30)

Currently Supported default mode htmlmixed, application/x-httpd-php and
text/javascript