inspired from http://bootsnipp.com/snipps/better-one-month-calendar with jscript to make it work