Android Like Pattern Lock using JavaScript