init javascript apprentice