Implement javascript onclick div effect