make javascript unobtrusive as possible