Updated to refactor out platform detection, sacrifice chicken to JSHint

Enyo-DCO-1.1-Signed-Off-By: Roy Sutton (roy.sutton@lge.com)