add javascript inherit