JSHint fixes 1/3
JSHint fixes 2/3
JSHint 3/3. Move wx.js into pids.js