embedded javascript with type attribute and script without