Added disabled button state to assignment generation in javascript code.