fixed conditional to use JS url ( only if flash is NOT supported )