The scripts are being outputed AFTER the <title> tag - so I embbeded my inline script before that
<html>
<head>
<script>
//some embedded script
</script>
<title>page title</title>
<!-- All the other scripts from the package will be here -->
</head>
...