adding functionality to detect javascript