unnecessary ending and starting script tag
common js code moved to basic.js, rest remain in derived templates