change behavior, do all the job in script tag

Signed-off-by: Thiago Rondon <thiago.rondon@gmail.com>