Updated formatting in core.py. In template javascript libraries are  loaded now
both from local source (if exists) and from official sites/CDNs.