JC-1966 Added js for Preview button