better Javascript in my opinion