Minor fixes in angular lib and server.js