prototypal: refactoring the main example page + minor bug fixes