Javascript Realization