fixed js hint errors