Fixed jslint errors in extensions