fixed javascript issue with temporary patch... better solution will follow