fix RJS templates deprecation issue