updates chart script to check for user agent and adjust chart tick marks accordingly