improve DOM.template, use 250 delay in visibility methods
fix ussue #14 with RequireJS + other minor changes