jiggling style/js management functions to make them work