Add missing var keyword (issue #2)
Remove unreachable break after retrurn statement (issue #3)
Change new Date ().getTime () with Date.now which is more fast
Update libs