Some code optimization

Following your question on stackoverflow I'm pushing some code optimization.
I'm really interested in following you're work with Jekyll and Angular.
I can help you on the Jekyll side.