Fixed 'Not working on XHTML page' (thnks to poofeg)

closed #46