Android kind of pattern lock implemented using Javascript