HTML5 Custom controller