Minor script improvement on settimeout ... also no need for type="text/javascript" with html5
<script>//<![CDATA[
JamHidup();
function JamHidup() {
var t = new Date(),
j = t.getHours(),
d = t.getMinutes(),
s = t.getSeconds(),
kala;
if (j <= 9)
j = "0" + j;
if (d <= 9)
d = "0" + d;
if (s <= 9)
s = "0" + s;
if (j >= 13)
{
j -= 12;
kala = " ' . $txt['time_pm'] . '";
}
else
{
kala = " ' . $txt['time_am'] . '";
}
document.getElementById("masa").innerHTML = j + ":" + d + ":" + s + kala;
setTimeout(function () {
"use strict";
JamHidup();
}, 1000);
}
//]]></script>
Or the minimized version
<script>//<![CDATA[
function JamHidup(){var e,a=new Date,b=a.getHours(),c=a.getMinutes(),d=a.getSeconds();9>=b&&(b="0"+b),9>=c&&(c="0"+c),9>=d&&(d="0"+d),b>=13?(b-=12,e=" ' . $txt['time_pm'] . '"):e=" ' . $txt['time_am'] . '",document.getElementById("masa").innerHTML=b+":"+c+":"+d+e,setTimeout(function(){"use strict";JamHidup()},1e3)}JamHidup();
//]]></script>