Moving javascript so modules will work in non-experimental mode.