Implement javascript revealing pattern