Add flatButton.js - return flat and pressed buttons depend last parameter