Use js methods instead of underscore

Sometimes it gives a "_" is not defined error