Make bucketname configurable in javascript