using built in methods, made reverse words work
reverse chars function is working
second version implemented in js