Negative Cube Function Example In Javascript