doing some aritmethic with php codeigniter jquery