Main Javascript change