Javascript for version 3.0