JS APIs Ex1 quick  fix