some js for great veiw