updating the deviceDetector directive with the constants

@srfrnk