Replaced javascript inclusion with plugin syntax

For more consistency I used the plugin syntax for the inclusion of both javascript files, because a few lines down it is used for the CSS.
The outputted html stays the same.