Added jqueryui and deleted script from register.xhtml.
Can draw tiled map. Pointy of flat.