from static to js generated