testing varaible outputs via javascript