Popular Search : Javascript Const Scope If