my solutions of javascript.