Add javascript post method