JavaScript for the Java Platform sample code