Made JS reference more generic for plug-n'play.