Modified js file to fix blank output

Modifying js file to negate get function running when false is returned.