turned js into unobtrusive style