Fixed js hint errors