Merged drop down code into decode.js file