adding javascript to close #85