added js calculate function
added button positioning