move all javascript requirejs inline templates to /templates/requirejs and remove duplicated code about path & extension check
added coffeescript requirejs support