allow bucketId and key
convert js defition to json and add jsonlint