Added applet option to launch Arduino IDE.
Fix small issue with loading IDE directory.
Updated applet test to same kind of js code use in webapp.