moved prototype stuff into hjs views