Recognition of basic positions using JavaScript and HTML5