added JavaScript tinkering