Update applet.js

fix bugs with Cinnamon 2.2