front-end prototype init