Learning from others: go to github and search for some seed projects that contian some keywords that interest you, try 'ruby blog' for example, CRUD apps are a good way to get to know coding styles, as you will already be slightly familiar with what the code is doing in any file by its filename and project architechture. Look at frameworks in the given language - how have the 'big boys' gone about doing tasks - can and should you try somehting similar?
Generally improving your code: jsperf.com is a good excersize for benchmarking. If you want to improve performance there is nothing better than tinkering with some loops or expressions and being able to judge how that affects speed directly. apart from that read read read, try looking for the 'eloquent javascript' series that guy can explain things well - often you will find that you can move the same concepts into other languages, try out some conference talks aswell people put a lot of effort into presenting their ideas, you can find many on youtube, or actually going can be good if you can persuade your boss to pay.