fix(parser):Apply javascript truthiness rules

@pavelgj @mhavery