master: fixing minor bugs. JSHint friendly. CURL example