Android pattern unlock in Core javascript