fixed missing context definition error in put.js