fixed #13 with js workaround