Issue #77: refactored lockscreen.js
Merge pull request #78 from yurenju/lockscreen-refactor-local

Issue #77: refactored lockscreen.js