javascript working nicely again