Javascript Prototype Template