Set local spacing for html and javascript