Fixing js hint problems