Use uglipyjs instead of slimit for smaller minified js; added if __name__ == __main__ check