v0.4.1: fixed some JavaScript issues