js compile
housecleaning
Check to make sure variable_name exists before using it. Closes #540