fixed initialization problem with client side JS

FED-110
Merge pull request #24 from traney/master

Fixed initialization flag for client side JS library