Use the Mathmatic way to build Javascript