Move label.js to lib