java script exam