Add javascript object method calls