got rid of JS error