make block javascript