Initial javascript configuration