Continued working on .js file. Added the boolean function part of the flow chart and adjusted some things on the previous function.