Added JavaScript mode.