Update runtime.js

Made template method use the passed in runtime to invoke a partial, rather than the in scope invokePartial method variable so as to allow the implementation to be overridden.