Math Examples with the use of Javascript